package com.sfddata.musicpillow.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sfddata.musicpillow.common.utils.PageUtils;
import com.sfddata.musicpillow.user.entity.EquipmentInfoEntity;
import com.sfddata.musicpillow.user.entity.UserInfoEntity;
import com.sfddata.musicpillow.user.exception.PasswordErrorException;
import com.sfddata.musicpillow.user.exception.UserNotExsitException;
import com.sfddata.musicpillow.user.exception.UserNotSetPasswordException;
import com.sfddata.musicpillow.user.vo.CheckPassWord;
import com.sfddata.musicpillow.user.vo.UserInfoEntityVo;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author jyo
 * @email 820389501@qq.com
 * @date 2022-04-22 14:36:04
 */
public interface UserInfoService extends IService<UserInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    UserInfoEntity getByAccount(String phone);

    UserInfoEntity updateUserInfo(UserInfoEntityVo userInfoVo);

    UserInfoEntity insertIfDontExist(String phoneCheck);

    UserInfoEntity checkPassword(CheckPassWord checkPassWord) throws PasswordErrorException, UserNotExsitException, UserNotSetPasswordException;

    List<EquipmentInfoEntity> getEquipList(String userId);
}

